<?php
session_start();

/* Previsualisation module */
	require_once('../includes/constantes.inc.php');
	require_once('../' .DIR_INCLUDE . '/classes/Groupe.class.php');
	require_once('../'. DIR_INCLUDE . '/Hook.inc.php');
	require_once('../' . DIR_INCLUDE . '/function.inc.php');
	require_once('../' .DIR_INCLUDE . '/bbcode.inc.php');
	require_once('../' .DIR_INCLUDE . '/pdo.inc.php');
	require_once('../' .DIR_INCLUDE . '/date.php');
	require_once('../' .DIR_INCLUDE . '/class_date.php');
	require_once('../' .DIR_INCLUDE . '/fil_ariane.php');
	
	if(isset($_POST['code']) && !empty($_POST['code'])){
		
		$level = id2level($_SESSION['id']);
		
		$_page = '';
		/*if($level == ADMIN)
			$_page .=  '<a href="' . getLienModule("admin") . '" alt="Zone d\'administration" title="Zone d\'administration"><img src="/avatar/avatar_admin.png" border="0"></a>';
		else if($level == MODO)
			$_page .=  '<a href="' . getLienModule("admin","modo") . '" alt="Modération" title="Modération"><img src="/avatar/avatar_modo.png" border="0"></a>';
		else if($level == NEWSER)
			$_page .=  '<a href="' . getLienModule("admin","modo") . '" alt="Gestion des news" title="Gestion des news"><img src="/avatar/avatar_news.png" border="0"></a>';
		else if($sex == HOMME)
			$_page .=  '<a href="' . getLienModule("membre","homme") . '" alt="Gestion des news" title="Gestion des news"><img src="/avatar/avatar_homme.png" border="0"></a>';
	else if($sex == FEMME)
			$_page .=  '<a href="' . getLienModule("membre","femme") . '" alt="Gestion des news" title="Gestion des news"><img src="/avatar/avatar_femme.png" border="0"></a>';	
	else
	{
		$_page .= ' <img src="/avatar/avatar_membres/'.$data['membre_avatar'].'" alt="son avatar" title="son avatar" />';
	}*/
	
/**	$_page .= getAvatarById($_SESSION['id']);
	
	$_page .= 'Inscription le :
			   '.date('d/m/Y',$v['membre_inscrit']).'
			   Groupe
			   '. groupe2name(id2level($_SESSION['id'])).'
			   Pr&eacute;nom :
			   '. GetPrenomById(id2level($_SESSION['id'])).'
			    &Acirc;ge :
			   '. GetAgeById(id2level($_SESSION['id'])).'
			   Ville :
			   '. GetVilleById(id2level($_SESSION['id'])).'
			  ';
	$_page .= '';
	
	
	
	
	
	
	
	
			/*
		
		'.urldecode($_POST['pagename']).'
			  
							'.sex2color(id2sex($_SESSION['id']),$_SESSION['id']).'
							'.$_page.'
							
							
							Posté le '.date("d/m/Y à H:i:s").'
		
		
		**///

		     
		echo '<div class="cadre_nouveau_topic">
		<div class="cadre_topic_sujet_left">Prévisualisation</div>
		<div class="cadre_topic_sujet_right">
		
		

		     
			  
							'.nl2br(code($_POST['code'])).'
						
							
				</div>
</div>
';
	}
	
	
	
		

?>